package com.zjhd.sealcutting.service.impl;

import com.zjhd.sealcutting.dao.MemberSessionidMapper;
import com.zjhd.sealcutting.service.MemberSessionidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * TODO  用户登录session管理
 *
 * @author wangchao
 * @version 1.0
 * @date 2020/12/11 10:43
 */
@Service
public class MemberSessionidServiceImpl implements MemberSessionidService {

    @Autowired
    private MemberSessionidMapper memberSessionidMapper;

    /**
     * TODO 根据用户ID删除sessionID
     * @author wangchao
     * @date 2020/12/11 10:45
     * @param 
     * @return 
     */
    @Override
    public boolean deleteByPrimaryKey(Integer msId) throws Exception {
        boolean bool=false;
        int i=memberSessionidMapper.deleteByPrimaryKey(msId);
        if(i>0){
            bool=true;
        }
        return bool;
    }
}
